package de.jonasblatt.networkapi.rpi.network.commands.server;

import de.jonasblatt.networkapi.rpi.network.commands.ServerCommand;
import de.jonasblatt.networkapi.rpi.networkapi.rpi.client.Client;

public class SCSendCliendId implements ServerCommand {

	private int clientId;

	public SCSendCliendId(int clientId) {
		this.clientId = clientId;
	}
	@Override
	public void execute(Client client) {
		if (!client.hasId()) {
			client.setClientID(this.clientId);
		}
	}

}
